home *** CD-ROM | disk | FTP | other *** search
- Path: library.erc.clarkson.edu!rpi!not-for-mail
- From: hwang@csd.uwo.ca (Handong Wang)
- Newsgroups: comp.lang.c++.moderated,comp.lang.c++
- Subject: Re: Meaning of the specifier volatile?
- Date: 5 Jan 1996 12:20:45 -0000
- Organization: Department of Computer Science, University of Western Ontario, London, Ontario, Canada
- Sender: cppmods@netlab.cs.rpi.edu
- Approved: Dietmar.Kuehl@uni-konstanz.de
- Message-ID: <4cj52t$q61@netlab.cs.rpi.edu>
- References: <4c9740$27n@netlab.cs.rpi.edu>
- NNTP-Posting-Host: netlab.cs.rpi.edu
-
- X-Original-Date: 5 Jan 1996 03:38:08 GMT
-
- In article <4c9740$27n@netlab.cs.rpi.edu>,
- Srinivas Vobilisetti <srv@cs.wayne.edu> wrote:
- >X-Original-Date: 31 Dec 1995 01:42:27 GMT
- >
- >Hello,
- >
- >I referred to various books on C++ including The C++ Programming Language
- >-Bjarne Stroustrup, C++ Primer -Stanley Lipmann, etc. Nowhere i could find
- >exact meaning of the specifier volatile. Thanks in advance for your help. I
- >would appreciate the reply at my email address srv@cs.wayne.edu
- >
- >Thanks
- >Srinivas
- >srv@cs.wayne.edu
-
- Basically the specifier 'volatile' means that the variable or object
- may be corrupted by some external sources, e.g. hardware interrupt.
- For example, you can write
- volative const int some_int;
- which means some_int may be changed by some external "powers", but not
- your program.
-
- Hope this will help
-
- Handong Wang
- Department of Computer Science
- Univ. of Western Ontario
- London Ontario
- Canada
- --
- Handong Wang
- Department of Computer Science
- University of Western Ontario
- London, Ontario Canada
-
- [ comp.lang.c++.moderated is a moderated newsgroup. Submit articles ]
- [ to <c++-submit@netlab.cs.rpi.edu>. The moderation policy can be ]
- [ retrieved from <http://netlab.cs.rpi.edu/~cppmods/guide.html>. ]
- [ Moderators can be reached at: c++-request@netlab.cs.rpi.edu. ]
-